package com.jinbiao.Transaction;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
 * 测试类
 * @author EX_WLJR_ZHUANGJB
 *
 */
public class App_Transaction {
	
	public static void main(String[] args) {
		ApplicationContext content =  new ClassPathXmlApplicationContext("application/trans_bean.xml");
		Transaction_Template template = content.getBean(Transaction_Template.class);
		System.out.println("------Records creation--------" );
	      template.create("Zara", 11, 99, 2010);
	      template.create("Nuha", 20, 97, 2010);
	      template.create("Ayan", 25, 100, 2011);
	      System.out.println("------Listing all the records--------" );
	}
}
